﻿@addTagHelper *, WebVella.Erp.Plugins.Core
@addTagHelper *, WebVella.Erp.Web
@addTagHelper *, WebVella.TagHelpers
@using WebVella.Erp.Web.Utils;

<script type="module" src="/_content/WebVella.Erp.Plugins.Project/js/wv-recurrence-template/wv-recurrence-template.esm.js"></script>
<script nomodule src="/_content/WebVella.Erp.Plugins.Project/js/wv-recurrence-template/wv-recurrence-template.js"></script>

<wv-row>
	<wv-column span="6">
		<wv-field-date label-text="Start Date" value="@ViewBag.StartDate" name="start_time"></wv-field-date>
	</wv-column>
	<wv-column span="6">
		<wv-field-date label-text="End Date" value="@ViewBag.EndDate" name="end_time"></wv-field-date>
	</wv-column>
</wv-row>

<wv-recurrence-template recurrence-template='@ViewBag.RecurrenceTemplateString'
						type-options='@ViewBag.RecurrenceTypeOptions'
						end-type-options='@ViewBag.RecurrenceEndTypeOptions'
						period-type-options='@ViewBag.PeriodTypeOptions'
						change-type-options='@ViewBag.RecurrenceChangeTypeOptions'
						template-default='@ViewBag.TemplateDefault'>
</wv-recurrence-template>
